//
// Created by WenDaoJiang on 2017/6/21.
// Copyright (c) 2017 文道江. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^AlertCallBack)(NSInteger buttonIndex);

@interface AlertView : NSObject <UIAlertViewDelegate>

//@property (nonatomic, readwrite) AlertCallBack alertCallBack;

+ (AlertView *)instance;


+ (void)confirmWithTitle:(NSString *)title Message:(NSString *)message Buttons:(NSArray *)buttons CallBack:(AlertCallBack)callback;
+ (void)confirmWithTitle:(NSString *)title Message:(NSString *)message CallBack:(AlertCallBack)callback;

+ (void)alertWithTitle:(NSString *)title Message:(NSString *)message Callback:(AlertCallBack)callback;
+ (void)alertWithTitle:(NSString *)title Message:(NSString *)message ButtonText:(NSString *)buttonText Callback:(AlertCallBack)callback;

@end